package com;
//import java.io.IOException;
//import java.io.ObjectInputStream;
//import java.io.ObjectOutputStream;
//import java.net.Socket;
//import java.net.UnknownHostException;

import datatypes.MensajeDT;


public class FacadeNegocio {
	
	private static FacadeNegocio instance = null;
	static Conexion xion;

	
	static public FacadeNegocio getInstance(){
		if (instance == null){
			instance =new FacadeNegocio();	
			xion = new Conexion();
			
		 }	
		return instance;
		}
	
     public void crearConexion(){
		
		xion.crearConexion()	;
		
     }
     
     public void cerrarConexion(){
    	 xion.cerrarConexion();
     }
     
     public MensajeDT enviarObjeto( MensajeDT mensaje ){
    	 
    	 return xion.conversacionSocket( mensaje );
    	 
     }
 
}
